<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>相对定位</title>
		<style>
			div{
				height: 80px;
				width: 600px;
				background-color: blue;
				margin: 50px;
			}
			div:nth-child(1){
				background-color: red;
				
			}
			div:nth-child(2){
				background-color: green;
				position: absolute;
				bottom: 20px;
				right: 60px;
			}
			.c2{
				border: 2px solid red;
			}
		</style>
	</head>
	<body>
		<div></div>
		<div>2222</div>
		<div></div>
		<p class="c2">教育改变生活</p>
	</body>
</html>